package com.wwy.consumer;

import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.amqp.rabbit.core.RabbitTemplate;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

/**
 * @author 王伟羽
 * @date 2024/3/13 15:10
 */

@Component
public class WorkQueuesConsumersOne {

    public final static String WORK_QUEUES = "work_queues";


//    @RabbitListener(queues = WORK_QUEUES)
//    public void consumerOne(String message) {
//        System.out.println("队列1收到消息"+message);
//    }
//
//    @RabbitListener(queues = WORK_QUEUES)
//    public void consumerTwo(String message) {
//        System.out.println("队列2收到消息"+message);
//    }
}
